home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1097 / AMOSLIST / text0075.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  2.1 KB  |  63 lines

  1. On 05-Ott-97, Mush wrote: AMOSPro or GUI Extension bug?
  2.  
  3. >Im having a problem with AMOSPro, and I dont know if it is the Pro editor
  4. >itself, or something in the GUI extension that is affecting it.
  5.  
  6. or something in your program ;)
  7.  
  8.  
  9. >   ' Open up a CLI window and grab the news!
  10. >   Proc WOP[2,50,50,540,100,"Mailinglist Manager Output..."]
  11. >   Proc WPR[2,"Attempting to Execute News Recovery script"+Chr$(10)+Chr$(10)]
  12. >   Proc WEX[2,"SYS:REXXC/Rx Mailserv:REXX/NNTPTransfer"]
  13. >   Wait 200
  14. >   WCL[2]
  15.  
  16. >Now, the real problem is the fact that the routine is deleting the contents
  17. >of the WEX[""] line, no matter where i run it from, and no matter what is
  18. >in it, when I go back to source format, the line will read:
  19. >
  20. >   Proc WEX["
  21. >
  22. >
  23. >Ive never used these procedures in ages, and only after starting using the
  24. >GUI extension, am I discovering these wierd effects. Like I said, I dont
  25. >know if its AMOSPro, or the GUI Extension.
  26.  
  27. Oh no.... the bug is in the WEX procedure, exactly here:
  28.  
  29.  
  30. If Len(COM$)>0
  31.       V=Varptr(COM$)
  32.       For ZZ=0 To Len(COM$)-1 : Poke ZZ+V,0 : Next ZZ
  33. End If 
  34.  
  35.  
  36. This is a *very* bad idea. The FOR cycle is destroing your source code!
  37. Poke directly a 0 into a amos string is dangeours... the explanation is a
  38. bit boring. You can find it in the AmosPro manual... section 14.A.08
  39.  
  40.  
  41. In order to fix the problem, remove this unuseful(???) lines from the
  42. procedure.
  43.  
  44. -- 
  45.  
  46.  
  47. Bye!
  48.  
  49.  
  50.                                      !!!
  51.                                      o o
  52.    +-----------------------------oOO-(_)-OOo----------------------------+
  53.    |                                                                    |
  54.    |  Pietro Ghizzoni - Dairymen Soft              __  /// Amiga 12OO   |
  55.    |     E-Mail:  ghizzo@agonet.it                 \\\/// 'O3O  5OMhz   |
  56.    |            Team AMIGA                          \/// 1OMB - CD4x    |
  57.    |                                                                    |
  58.    | Amos Professional Team Coordinator               AMIGA RULEZ!!     |
  59.    |                                                                    |
  60.    +--------------------------------------------------------------------+
  61.  
  62.  
  63.